package cn.stylefeng.overall.modular.config.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 设备类型编码表
 * </p>
 *
 * @author dusd
 * @since 2019-04-25
 */
@TableName("standard_equ_type")
public class StandardEquType extends Model<StandardEquType> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;
    /**
     * 设备类型编码
     */
    @TableField("ST_EQU_TYPE_CODE")
    @NotBlank(message="设备类型编码不能为空")
    private String stEquTypeCode;
    /**
     * 设备类型名称
     */
    @TableField("ST_EQU_TYPE_NAME")
    @NotBlank(message="设备类型名称不能为空")
    private String stEquTypeName;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;
    /**
     * 状态（ENABLE启用、DISABLE禁用），默认ENABLE
     */
    @TableField("STATUS")
    private String status;
    /**
     * 删除标志（N未删除、Y已删除），默认N
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 创建人ID
     */
    @TableField("CREATE_USER_ID")
    private String createUserId;
    /**
     * 创建人名称
     */
    @TableField("CREATE_USER_NAME")
    private String createUserName;
    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 更新人ID
     */
    @TableField("UPDATE_USER_ID")
    private String updateUserId;
    /**
     * 更新人名称
     */
    @TableField("UPDATE_USER_NAME")
    private String updateUserName;
    /**
     * 更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStEquTypeCode() {
        return stEquTypeCode;
    }

    public void setStEquTypeCode(String stEquTypeCode) {
        this.stEquTypeCode = stEquTypeCode;
    }

    public String getStEquTypeName() {
        return stEquTypeName;
    }

    public void setStEquTypeName(String stEquTypeName) {
        this.stEquTypeName = stEquTypeName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StandardEquType{" +
        ", id=" + id +
        ", stEquTypeCode=" + stEquTypeCode +
        ", stEquTypeName=" + stEquTypeName +
        ", remark=" + remark +
        ", status=" + status +
        ", delFlag=" + delFlag +
        ", createUserId=" + createUserId +
        ", createUserName=" + createUserName +
        ", createDate=" + createDate +
        ", updateUserId=" + updateUserId +
        ", updateUserName=" + updateUserName +
        ", updateDate=" + updateDate +
        "}";
    }
}
